import axios from 'axios'
import React, { Component } from 'react'

import './main.less'

import zfb from '@/zfb.png'

// react 的根组件
export default class App extends Component {

  componentDidMount(){
    axios('/api/RoomApi/live').then(res => {
      console.log(res);
    })
  }

  render() {
    return (
      <div>
        <h1>App + react:一节课不旷，一节课不听，主打的就是陪伴。</h1>
        <img style={{width: '100px'}} src={zfb} alt="" />
      </div>
    )
  }
}
